Sin (number)

Basic and Crystal syntax.

Argument

Number value that represents an angle in radians

Returns

Number value between -1 and 1

Action

Sin returns a number specifying the sine of an angle given in radians. It takes a right-angle triangle, and returns the length of the side opposite to the specified angle divided by the length of the hypotenuse.

Examples

The following examples are applicable to both Basic and Crystal syntax:

Sin (1)

Returns 0.8415 (rounded to 4 decimals). This is the sine of 1 radian.

Sin (30 * crPi / 180)

Returns 0.5. This is the sine of 30 degrees. Before taking the sine, the angle is converted to radians by multiplying by crPi / 180.

Comments


Seagate Software IMG Holdings, Inc.
http://www.seagatesoftware.com
Support services:
http://support.seagatesoftware.com